package com.manage.project.biz.service.impl;

import java.util.List;
import com.manage.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.manage.project.biz.mapper.BizQitasheshidingqijianchaMapper;
import com.manage.project.biz.domain.BizQitasheshidingqijiancha;
import com.manage.project.biz.service.IBizQitasheshidingqijianchaService;

/**
 Service业务层处理
 *
 * @author liutao
 *
 */
@Service
public class BizQitasheshidingqijianchaServiceImpl implements IBizQitasheshidingqijianchaService
{
    @Autowired
    private BizQitasheshidingqijianchaMapper bizQitasheshidingqijianchaMapper;

    /**
     * 查询其他设施定期检查
     *
     * @param id 其他设施定期检查主键
     * @return 其他设施定期检查
     */
    @Override
    public BizQitasheshidingqijiancha selectBizQitasheshidingqijianchaById(Long id)
    {
        return bizQitasheshidingqijianchaMapper.selectBizQitasheshidingqijianchaById(id);
    }

    /**
     * 查询其他设施定期检查列表
     *
     * @param bizQitasheshidingqijiancha 其他设施定期检查
     * @return 其他设施定期检查
     */
    @Override
    public List<BizQitasheshidingqijiancha> selectBizQitasheshidingqijianchaList(BizQitasheshidingqijiancha bizQitasheshidingqijiancha)
    {
        return bizQitasheshidingqijianchaMapper.selectBizQitasheshidingqijianchaList(bizQitasheshidingqijiancha);
    }

    /**
     * 新增其他设施定期检查
     *
     * @param bizQitasheshidingqijiancha 其他设施定期检查
     * @return 结果
     */
    @Override
    public int insertBizQitasheshidingqijiancha(BizQitasheshidingqijiancha bizQitasheshidingqijiancha)
    {
        bizQitasheshidingqijiancha.setCreateTime(DateUtils.getNowDate());
        return bizQitasheshidingqijianchaMapper.insertBizQitasheshidingqijiancha(bizQitasheshidingqijiancha);
    }

    /**
     * 修改其他设施定期检查
     *
     * @param bizQitasheshidingqijiancha 其他设施定期检查
     * @return 结果
     */
    @Override
    public int updateBizQitasheshidingqijiancha(BizQitasheshidingqijiancha bizQitasheshidingqijiancha)
    {
        bizQitasheshidingqijiancha.setUpdateTime(DateUtils.getNowDate());
        return bizQitasheshidingqijianchaMapper.updateBizQitasheshidingqijiancha(bizQitasheshidingqijiancha);
    }

    /**
     * 批量删除其他设施定期检查
     *
     * @param ids 需要删除的其他设施定期检查主键
     * @return 结果
     */
    @Override
    public int deleteBizQitasheshidingqijianchaByIds(Long[] ids)
    {
        return bizQitasheshidingqijianchaMapper.deleteBizQitasheshidingqijianchaByIds(ids);
    }

    /**
     * 删除其他设施定期检查信息
     *
     * @param id 其他设施定期检查主键
     * @return 结果
     */
    @Override
    public int deleteBizQitasheshidingqijianchaById(Long id)
    {
        return bizQitasheshidingqijianchaMapper.deleteBizQitasheshidingqijianchaById(id);
    }
}
